import {address} from '../../utils/interface'
Page({
  data:{
    addressList:[]
  },
  onLoad(){
    this.getAddress()
  },
  async getAddress(){
    let token = wx.getStorageSync('token')
    let {data:res} = await address({token}).catch(err=>err)
    console.log(res);
    this.setData({
      addressList:res.data
    })
  },
})